<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page isELIgnored="false" %>
<html>
<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta content="" name="description" />
	<meta content="webthemez" name="author" />
	<title>主页</title>
	<!-- Bootstrap Styles-->
	<link href="assets/css/bootstrap.css" rel="stylesheet" />
	<!-- FontAwesome Styles-->
	<link href="static/css/font-awesome.css" rel="stylesheet" />
	<!-- Morris Chart Styles-->
	<link href="assets/js/morris/morris-0.4.3.min.css" rel="stylesheet" />
	<!-- Custom Styles-->
	<link href="assets/css/custom-styles.css" rel="stylesheet" />
	<!-- Google Fonts-->
	<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
	<link rel="stylesheet" href="assets/js/Lightweight-Chart/cssCharts.css">
</head>
<body>
<div id="wrapper">
	<nav class="navbar navbar-default top-navbar" role="navigation">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
				<span class="sr-only">Toggle navigation</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="/home"><strong><i class="icon fa fa-plane"></i> 啊咿呀</strong></a>
			<div id="sideNav" href="/home">
				<i class="fa fa-bars icon"></i>
			</div>
		</div>

		<ul class="nav navbar-top-links navbar-right">
			<!-- /.dropdown -->
			<li class="dropdown">
				<a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
					<i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
				</a>
				<ul class="dropdown-menu dropdown-user">
					<c:choose>
						<c:when test="${user !='anonymousUser'}">
							<li><a href="#"><i class="fa fa-user fa-fw"></i> User Profile</a>
							</li>
							<li><a href="#"><i class="fa fa-gear fa-fw"></i> Settings</a>
							</li>
							<li class="divider"></li>
							<li><a href="/logout"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
							</li>
						</c:when>
						<c:when test="${user == 'anonymousUser'}">
							<li class="divider"></li>
							<li><a href="/login"><i class="fa fa-sign-in fa-fw"></i> Login</a>
							</li>
						</c:when>
					</c:choose>

				</ul>
				<!-- /.dropdown-user -->
			</li>
			<!-- /.dropdown -->
		</ul>
	</nav>
	<!--/. NAV TOP  -->
	<nav class="navbar-default navbar-side" role="navigation">
		<div class="sidebar-collapse">
			<ul class="nav" id="main-menu">
				<li>
					<a class="active-menu" href="index.html"><i class="fa fa-dashboard"></i> 美文</a>
				</li>
				<li>
					<a href="ui-elements.html"><i class="fa fa-desktop"></i>诗歌</a>
				</li>

				<li>
					<a href="#"><i class="fa fa-sitemap"></i> Charts<span class="fa arrow"></span></a>
					<ul class="nav nav-second-level">
						<li>
							<a href="chart.html">古诗</a>
						</li>
						<li>
							<a href="morris-chart.html">现代诗</a>
						</li>
					</ul>
				</li>

				<li>
					<a href="tab-panel.html"><i class="fa fa-qrcode"></i> 杂文</a>
				</li>

			</ul>

		</div>

	</nav>
	<!-- /. NAV SIDE  -->

	<div id="page-wrapper">
		<div class="header">
			<h1 class="page-header">
				数据版 <small>欢迎来到 啊咿呀</small>
			</h1>
			<ol class="breadcrumb">
				<li><a href="/home">主页</a></li>
				<li><a href="#">美文</a></li>
				<li class="active"></li>
			</ol>

		</div>
		<div id="page-inner">
			<div class="row">
				<div class="col-md-3 col-sm-12 col-xs-12">
					<div class="board">
						<div class="panel panel-primary">
							<div class="number">
								<h3>
									<h3 id="dailyVisitAmount"></h3>
									<small >日访问量</small>
								</h3>
							</div>
							<div class="icon">
								<i id="dailyVisit" class="fa fa-eye fa-5x red"></i>
							</div>

						</div>
					</div>
				</div>

				<div class="col-md-3 col-sm-12 col-xs-12">
					<div class="board">
						<div class="panel panel-primary">
							<div class="number">
								<h3>
									<h3>32</h3>
									<small>在线人数</small>
								</h3>
							</div>
							<div class="icon">
								<i class="fa fa-shopping-cart fa-5x blue"></i>
							</div>

						</div>
					</div>
				</div>

				<div class="col-md-3 col-sm-12 col-xs-12">
					<div class="board">
						<div class="panel panel-primary">
							<div class="number">
								<h3>
									<h3>56,150</h3>
									<small>注册用户</small>
								</h3>
							</div>
							<div class="icon">
								<i class="fa fa-comments fa-5x green"></i>
							</div>

						</div>
					</div>
				</div>

				<div class="col-md-3 col-sm-12 col-xs-12">
					<div class="board">
						<div class="panel panel-primary">
							<div class="number">
								<h3>
									<h3>89</h3>
									<small>今日新增用户</small>
								</h3>
							</div>
							<div class="icon">
								<i class="fa fa-user fa-5x yellow"></i>
							</div>

						</div>
					</div>
				</div>

			</div>
			<div class="row">
				<div class="col-sm-6 col-xs-12">
					<div class="panel panel-default chartJs">
						<div class="panel-heading">
							<div class="card-title">
								<div class="title">折线图</div>
							</div>
						</div>
						<div class="panel-body">
							<canvas id="line-chart" class="chart"></canvas>
							<%--<canvas id="line-charts"></canvas>--%>
						</div>
					</div>
				</div>
				<div class="col-sm-6 col-xs-12">
					<div class="panel panel-default chartJs">
						<div class="panel-heading">
							<div class="card-title">
								<div class="title">Bar Chart</div>
							</div>
						</div>
						<div class="panel-body">
							<canvas id="bar-chart" class="chart"></canvas>
						</div>
					</div>
				</div>
			</div>

			<div class="row">
				<div class="col-xs-6 col-md-3">
					<div class="panel panel-default">
						<div class="panel-body easypiechart-panel">
							<h4>Profit</h4>
							<div class="easypiechart" id="easypiechart-blue" data-percent="82" ><span class="percent">82%</span>
							</div>
						</div>
					</div>
				</div>
				<div class="col-xs-6 col-md-3">
					<div class="panel panel-default">
						<div class="panel-body easypiechart-panel">
							<h4>Sales</h4>
							<div class="easypiechart" id="easypiechart-orange" data-percent="55" ><span class="percent">55%</span>
							</div>
						</div>
					</div>
				</div>
				<div class="col-xs-6 col-md-3">
					<div class="panel panel-default">
						<div class="panel-body easypiechart-panel">
							<h4>Customers</h4>
							<div class="easypiechart" id="easypiechart-teal" data-percent="84" ><span class="percent">84%</span>
							</div>
						</div>
					</div>
				</div>
				<div class="col-xs-6 col-md-3">
					<div class="panel panel-default">
						<div class="panel-body easypiechart-panel">
							<h4>No. of Visits</h4>
							<div class="easypiechart" id="easypiechart-red" data-percent="46" ><span class="percent">46%</span>
							</div>
						</div>
					</div>
				</div>
			</div><!--/.row-->

			<div class="copyrights">Collect from <a href="http://www.cssmoban.com/" >企业网站模板</a></div>

			<div class="row">
				<div class="col-md-5">
					<div class="panel panel-default">
						<div class="panel-heading">
							Line Chart
						</div>
						<div class="panel-body">
							<div id="morris-line-chart"></div>
						</div>
					</div>
				</div>

				<div class="col-md-7">
					<div class="panel panel-default">
						<div class="panel-heading">
							Bar Chart Example
						</div>
						<div class="panel-body">
							<div id="morris-bar-chart"></div>
						</div>

					</div>
				</div>

			</div>



			<div class="row">
				<div class="col-md-9 col-sm-12 col-xs-12">
					<div class="panel panel-default">
						<div class="panel-heading">
							Area Chart
						</div>
						<div class="panel-body">
							<div id="morris-area-chart"></div>
						</div>
					</div>
				</div>
				<div class="col-md-3 col-sm-12 col-xs-12">
					<div class="panel panel-default">
						<div class="panel-heading">
							Donut Chart Example
						</div>
						<div class="panel-body">
							<div id="morris-donut-chart"></div>
						</div>
					</div>
				</div>

			</div>
			<div class="row">
				<div class="col-md-12">

				</div>
			</div>
			<!-- /. ROW  -->





			<div class="row">
				<div class="col-md-4 col-sm-12 col-xs-12">
					<div class="panel panel-default">
						<div class="panel-heading">
							任务栏
						</div>
						<div class="panel-body">
							<div class="list-group">

								<a href="#" class="list-group-item">
									<span class="badge">7 minutes ago</span>
									<i class="fa fa-fw fa-comment"></i> Commented on a post
								</a>
								<a href="#" class="list-group-item">
									<span class="badge">16 minutes ago</span>
									<i class="fa fa-fw fa-truck"></i> Order 392 shipped
								</a>
								<a href="#" class="list-group-item">
									<span class="badge">36 minutes ago</span>
									<i class="fa fa-fw fa-globe"></i> Invoice 653 has paid
								</a>
								<a href="#" class="list-group-item">
									<span class="badge">1 hour ago</span>
									<i class="fa fa-fw fa-user"></i> A new user has been added
								</a>
								<a href="#" class="list-group-item">
									<span class="badge">1.23 hour ago</span>
									<i class="fa fa-fw fa-user"></i> A new user has added
								</a>
								<a href="#" class="list-group-item">
									<span class="badge">yesterday</span>
									<i class="fa fa-fw fa-globe"></i> Saved the world
								</a>
							</div>
							<div class="text-right">
								<a href="#">更多任务 <i class="fa fa-arrow-circle-right"></i></a>
							</div>
						</div>
					</div>

				</div>
				<div class="col-md-8 col-sm-12 col-xs-12">

					<div class="panel panel-default">
						<div class="panel-heading">
							用户信息
						</div>
						<div class="panel-body">
							<div class="table-responsive">
								<table class="table table-striped table-bordered table-hover">
									<thead>
									<tr>
										<th>S No.</th>
										<th>First Name</th>
										<th>Last Name</th>
										<th>User Name</th>
										<th>Email ID.</th>
									</tr>
									</thead>
									<tbody>
									<tr>
										<td>1</td>
										<td>John</td>
										<td>Doe</td>
										<td>John15482</td>
										<td>name@site.com</td>
									</tr>
									<tr>
										<td>2</td>
										<td>Kimsila</td>
										<td>Marriye</td>
										<td>Kim1425</td>
										<td>name@site.com</td>
									</tr>
									<tr>
										<td>3</td>
										<td>Rossye</td>
										<td>Nermal</td>
										<td>Rossy1245</td>
										<td>name@site.com</td>
									</tr>
									<tr>
										<td>4</td>
										<td>Richard</td>
										<td>Orieal</td>
										<td>Rich5685</td>
										<td>name@site.com</td>
									</tr>
									<tr>
										<td>5</td>
										<td>Jacob</td>
										<td>Hielsar</td>
										<td>Jac4587</td>
										<td>name@site.com</td>
									</tr>
									<tr>
										<td>6</td>
										<td>Wrapel</td>
										<td>Dere</td>
										<td>Wrap4585</td>
										<td>name@site.com</td>
									</tr>

									</tbody>
								</table>
							</div>
						</div>
					</div>

				</div>
			</div>
			<!-- /. ROW  -->


			<footer><p>Copyright &copy; 2016.Company name All rights reserved.<a target="_blank" href="http://www.cssmoban.com/">啊咿呀</a></p>


			</footer>
		</div>
		<!-- /. PAGE INNER  -->
	</div>
	<!-- /. PAGE WRAPPER  -->
</div>
<!-- /. WRAPPER  -->
<!-- JS Scripts-->
<!-- jQuery Js -->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- Bootstrap Js -->
<script src="assets/js/bootstrap.min.js"></script>





<!-- Metis Menu Js -->
<script src="assets/js/jquery.metisMenu.js"></script>
<!-- Morris Chart Js -->
<script src="assets/js/morris/raphael-2.1.0.min.js"></script>
<script src="assets/js/morris/morris.js"></script>


<script src="assets/js/easypiechart.js"></script>
<script src="assets/js/easypiechart-data.js"></script>

<script src="assets/js/Lightweight-Chart/jquery.chart.js"></script>

<!-- Custom Js -->
<script src="assets/js/custom-scripts.js"></script>



<!-- Chart Js -->
<script type="text/javascript" src="assets/js/chart.min.js"></script>

<script type="text/javascript" src="assets/js/mychartjs.js"></script>
<script src="assets/js/echarts.common.min.js"></script>
<script type="text/javascript">

	$("#dailyVisit").bind("click",function(event){

        var content=$("#dailyVisitAmount").html();
	    if (content == null || content == ''){ $.get('/noSentiveData/onLineUserNum',function(data){$("#dailyVisitAmount").html(data);});}
	});

    var ctx, data, myLineChart, options;
    Chart.defaults.global.responsive = true;
    ctx = $('#line-chart').get(0).getContext('2d');
    options = {
        scaleShowGridLines: true,
        scaleGridLineColor: "rgba(0,0,0,.05)",
        scaleGridLineWidth: 1,
        scaleShowHorizontalLines: true,
        scaleShowVerticalLines: true,
        bezierCurve: false,
        bezierCurveTension: 0.4,
        pointDot: true,
        pointDotRadius: 4,
        pointDotStrokeWidth: 1,
        pointHitDetectionRadius: 20,
        datasetStroke: true,
        datasetStrokeWidth: 2,
        datasetFill: true

    };
    data = {
        labels: ['JAN', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'],
        datasets: [
            {
                label: "My 1 ",
                fillColor: "rgba(26, 188, 156,0.2)",
                strokeColor: "#1ABC9C",
                pointColor: "#1ABC9C",
                pointStrokeColor: "#fff",
                pointHighlightFill: "#fff",
                pointHighlightStroke: "#1ABC9C",
                data: [65, 59, 80, 81, 56, 55, 50]
            }, {
                label: "My 2 ",
                fillColor: "rgba(34, 167, 240,0.2)",
                strokeColor: "#22A7F0",
                pointColor: "#22A7F0",
                pointStrokeColor: "#fff",
                pointHighlightFill: "#fff",
                pointHighlightStroke: "#22A7F0",
                data: [28, 48, 40, 19, 86, 27, 90]
            }
        ]
    };
    myLineChart = new Chart(ctx).Line(data, options);

</script>
</body>
</html>